package object.apply;

/**
 * Created with IntelliJ IDEA.
 * ClassName: CustomerTest
 * Package: object.apply
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-22
 * Time: 23:18
 */

public class CustomerTest {
    public static void main(String[] args) {

        Customer c1 = new Customer("Tom",12,new Account(2000));

        Customer c2 = new Customer("Tom",12,new Account(2000));

        //简单生成equals比较之后 还是false
        //关键就是Account也是自定义的类 所以Account也要重写equals方法 所以重写之前 他两比较的是地址
        System.out.println(c1.equals(c2));



    }
}
